import gsap from "gsap";

export default {
    toggleAside(context) {
        if (context.asideTranslateXPercentage === -95) {
            gsap.to(context, {
                asideTranslateXPercentage: 0,
                duration: 0.35
            });
        }
        else if (context.asideTranslateXPercentage === 0) {
            gsap.to(context, {
                asideTranslateXPercentage: -95,
                duration: 0.35
            });
        }
    }
}